<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<form id="user_initPassword_save" method="post" action="../../shiro/user/user_initPassword_save.action">
    <input type="hidden" name="userId" value="${sysUser.userId==null?0:sysUser.userId}">
    <table class="tab_form">
        <tr>
            <td><input class="easyui-textbox" name="username"  readonly="readonly"data-options="label:'用户名称:'"
                       value="${sysUser.username}"/>
             </td>
            <td><input class="easyui-textbox" name="loginpass"   readonly="readonly" data-options="label:'原用户密码:'"
                       value="${sysUser.loginpass}"/></td>
            <td>
            	点击初始化密码当前用户密码将初始化为：123456
                <%-- <input class="easyui-combobox" name="roleIds"
                       data-options="valueField:'id',textField:'text',url:'../../shiro/role/loadComboBoxData.action?userId=${sysUser.userId}',multiple:true" /> --%>
            </td>
        </tr>
    </table>
</form>
<div style="text-align:center;padding:5px 0">
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">初始化密码</a>
</div>
<script>
    function submitForm() {
        $('#user_initPassword_save').form('submit', {
            success: function (data) {
            	if(data > 0){
            		alert('初始化成功！');
            	}else{
            		alert('初始化失败！');
            	}
            	  $('#win_main').window("close");
                  $("#user_list").datagrid("reload");
            }
        });
    }
    function clearForm() {
        $('#user_initPassword_save').form('clear');
    }
</script>